package cn.tanghom.baiding.service.system.dao;

import cn.tanghom.baiding.core.dao.BaseDao;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 角色菜单绑定映射
 * @author: NEMO
 * @date: 2017-07-10 15:59
 */
@Repository
public interface RoleResourcesDao{

    /**
     * 保存
     *
     * @param roleId
     * @param resId
     */
    void save(@Param(value = "roleId") Long roleId, @Param(value = "resId") Long resId);

    /**
     * 删除
     *
     * @param roleId
     * @param resId
     */
    void delete(@Param(value = "roleId") Long roleId, @Param(value = "resId") Long resId);

    /**
     * 根据条件查询返回集合
     *
     * @param roleId
     * @param resId
     */
    List<Map<String,Object>> selectListByParams(@Param(value = "roleId") Long roleId, @Param(value = "resId") Long resId);
}
